/*
 * @Author: NtyAaron
 * @Date: 2021-03-24 12:02:50
 * @LastEditors: NtyAaron
 * @LastEditTime: 2021-03-24 15:45:52
 * @Description: file content
 * @FilePath: \dwq\component\tabbar\tabbar.js
 */
//Component Object
Component({
  options: {
    multipleSlots: true,
  },
  properties: {
    myProperty: {
      type: String,
      value: '',
      observer: function () {},
    },
  },
  data: {
    tabbarList: [
      {
        name: '主页',
        url: '/pages/index/index',
        icon: '/pages/images/shouye@2x.png',
      },
      {
        name: '停留日数',
        url: '/pages/taxes/taxes',
        icon: '/pages/images/tlrs@2x.png',
      },
      {
        name: '锦囊',
        url: '/pages/kitDetail/kitDetail',
        icon: '/pages/images/jn@2x.png',
      },
      {
        name: '支援',
        url: '',
        icon: '/pages/images/zy@2x.png',
      },
    ],
  },
  methods: {
    toPathDetail(e) {
      wx.switchTab({
        url: e.currentTarget.dataset.bean,
      })
    },
  },
})
